from django.urls import path

from news import views

app_name = "news"
# <a href="{% url 'news:index' %}"></a>
urlpatterns = [
    path('',views.IndexView.as_view(),name='index'),
    path('news/', views.NewsListView.as_view(), name='news_list'),
    path('news/banners/', views.NewsBanner.as_view(), name='news_banner'),
    path('news/<int:news_id>/',views.NewsDetailView.as_view(),name='news_detail'),
    path('news/<int:news_id>/comments/',views.NewsCommentView.as_view(),name='news_comments'),
    path('search/',views.SearchView(),name='search'),
]
